import request from "../request";
//列表接口
export function getVYqBrdjxxRJSSPagesInfo(params) {
  return request({
    url: "/RjbfCenterController/getVYqBrdjxxRJSSPagesInfo",
    method: "post",
    data: params,
  });
}
// 详情接口
export function getRJSSVYqBrdjxx(params) {
  return request({
    url: "/RjbfCenterController/getRJSSVYqBrdjxx",
    method: "post",
    data: params,
  });
}
// 取消接口
export function delPatientBed(params) {
  return request({
    // url: "/RjbfCenterController/delPatientBed?id=" + params,
    url: `/RjbfCenterController/delPatientBed?id=${params.id}&operName=${params.operName}`,
    method: "get",
  });
}

// 完成接口
export function updatePatientBed(params) {
  return request({
    url: "/RjbfCenterController/updatePatientBed?id=" + params,
    method: "get",
  });
}

// 护士端导出
export function getVYqBrdjxxRJSSDownLoad(params) {
  return request({
    url: "/RjbfCenterController/getVYqBrdjxxRJSSDownLoad",
    method: "post",
    data: params,
    responseType: "blob",
  });
}

// 日间预约-获取患者信息
export function getIiPrepayinByIdRJ(params) {
  return request({
    url: `/RjbfCenterController/getIiPrepayinByIdRJ`,
    method: "get",
    params,
  });
}

// 日间预约-获取日间手术列表
export function searchRJSS(params) {
  return request({
    url: `/RjbfCenterController/searchRJSS`,
    method: "get",
    params,
  });
}

// 日间预约-获取日间输注
export function searchRJSZ(params) {
  return request({
    url: `/RjbfCenterController/searchRJSZ`,
    method: "get",
    params,
  });
}

// 日间预约-新增预约
export function addPatientBed(params) {
  return request({
    url: `/RjbfCenterController/addPatientBed`,
    method: "post",
    data: params,
  });
}
